package com.example.blinkhome.activity;

import com.example.blinkhome.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class SearchDevicesActivity extends Activity{

	private TextView title;
	private ImageView back;
	private ImageView wifiscanf;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_search);
		findview();
		click();
		setview();
		
	}
	
	private void setview(){
		
		title.setText("选择添加方式");
		
	}
	
	private void click(){
		
		back.setOnClickListener(new View.OnClickListener() {	
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
			finish();	
			}
		});
		wifiscanf.setOnClickListener(new View.OnClickListener() {	
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
			Intent intent=new Intent(SearchDevicesActivity.this,CategorySearchActivity.class);
			startActivity(intent);
			}
		});
		
	}
	
	private void findview(){
		
		title=(TextView) findViewById(R.id.title);
		back=(ImageView) findViewById(R.id.back);
		wifiscanf=(ImageView) findViewById(R.id.iv_scanf);
		
	}

	
}
